]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Use Cogl.Pipeline.new to construct new pipelines
authorSebastian Wick <sebastian.wick@redhat.com>
Fri, 15 Dec 2023 15:36:47 +0000 (16:36 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 6 Jan 2024 21:24:56 +0000 (21:24 +0000)
new Cogl.Pipeline now constructs a GObject via g_object_new and not via
cogl_pipeline_new. Construction via g_object_new requires a some
construct only parameters so either way, this call doesn't work anymore.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3144
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3057>

HACKING.md
js/ui/lookingGlass.js

index fe8078446447528ccde2d459b5df92e030c2ac35..7672d1f2c4da4a758163c263c7e22dddcbdc7023 100644 (file)
@@ -168,7 +168,7 @@ you to inherit from a type to use it, you can do so:
              let coglContext = framebuffer.get_context();
              let alloc = this.get_allocation_box();
 
-             let pipeline = new Cogl.Pipeline(coglContext);
+             let pipeline = Cogl.Pipeline.new(coglContext);
              pipeline.set_color4ub(255, 0, 0, 255);
 
              framebuffer.draw_rectangle(pipeline,
index 9f5575f75c83b278c113b3b553c5bdd77eb7a87c..b9f8589a310dd172076b6a89f5c1293c3361141c 100644 (file)
@@ -542,7 +542,7 @@ class RedBorderEffect extends Clutter.Effect {
             let color = new Cogl.Color();
             color.init_from_4ub(0xff, 0, 0, 0xc4);
 
-            this._pipeline = new Cogl.Pipeline(coglContext);
+            this._pipeline = Cogl.Pipeline.new(coglContext);
             this._pipeline.set_color(color);
         }